<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorate="~{admin/layout/parent}">
<head>
	<title id="pageTitle">系统配置修改</title>
</head>
<body>

<th:block layout:fragment="page-content">
<div class="card-box">
	<div class="page-form">
		<div class="row">
			<div class="col-md-12 col-lg-9">
				<form id="form" class="form-horizontal form">
					<input type="hidden" name="id" th:value="${sysConfig.id}" />
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="type">
							分类
						</label>
						<div class="col-sm-9">
							<select class="form-control" name="type">
								<option value="">请选择分类</option>
								<option th:each="type : ${types}" th:value="${type.key}" th:selected="${sysConfig.type == type.key}">[(${type.value})]</option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="content">
							内容
						</label>
						<div class="col-sm-9">
							<textarea class="form-control" name="content" placeholder="请输入内容">[(${sysConfig.content})]</textarea>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="sort">
							同级排序
						</label>
						<div class="col-sm-9">
							<input class="form-control" type="text" name="sort" th:value="${sysConfig.sort}" placeholder="请输入同级排序">
						</div>
					</div>
					<div class="form-group text-right m-b-0">
						<button id="btn-save" class="ladda-button btn btn-primary waves-effect waves-light" type="button" data-style="expand-left"><i class="fa fa-save"></i> 提交</button>
						<a class="btn btn-white waves-effect waves-light" href="javascript:window.history.go(-1);"><i class="fa fa-reply"></i> 返回</a>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>

</th:block>
<th:block layout:fragment="page-plugin">
	
</th:block>
<th:block layout:fragment="page-js">
<script type="text/javascript" th:src="@{/page/admin/sys/config-modify.js}"></script>
</th:block>
</body>

</html>
